package com.znyj.cloud.chain.log;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.net.SyslogAppender;

/**
 * Created by gaoliwei02 on 17/6/21.
 */
public class CustomerLog {

    private static final Level CustomerLevel = new CustomerLogLevel(20050, "CUSTOMER", SyslogAppender.LOG_LOCAL0);

    private static class CustomerLogLevel extends Level {
        public CustomerLogLevel(int level, String levelStr, int syslogEquivalent) {
            super(level, levelStr, syslogEquivalent);
        }
    }

    public static void customerLog(Logger logger, Object objLogInfo) {
        logger.log(CustomerLevel, objLogInfo);
    }
}